package com.cq.xjms.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name = "MENU")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Menu extends BaseEntity{
	private static final long serialVersionUID = -4055052925995190837L;
	
	@Column(name = "MENU_ID", length = 5, nullable = false, unique = true)
	private int menuId; //菜单编号
	@Column(name = "MENU_NAME", length = 50, nullable = false)
	private String menuName;// 菜单名称
	@Column(name = "MENU_URL", length = 255, nullable = false)
	private String menuUrl; //菜单URL
	@Column(name = "SHOW_LEVEL", length = 3, nullable = false)
	private String showLevel; //菜单显示等级
	@Column(name = "MENU_PID", length = 5, nullable = false)
	private int menuPid;// 父级ID,没有则为-1
	@Column(name = "MENU_LEVEL", length = 1, nullable = true)
	private int menuLevel;
	public int getMenuId() {
		return menuId;
	}
	public void setMenuId(int menuId) {
		this.menuId = menuId;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getMenuUrl() {
		return menuUrl;
	}
	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}
	public String getShowLevel() {
		return showLevel;
	}
	public void setShowLevel(String showLevel) {
		this.showLevel = showLevel;
	}
	public int getMenuPid() {
		return menuPid;
	}
	public void setMenuPid(int menuPid) {
		this.menuPid = menuPid;
	}
	public int getMenuLevel() {
		return menuLevel;
	}
	public void setMenuLevel(int menuLevel) {
		this.menuLevel = menuLevel;
	}
	
	
	
	
}
